﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLite.Reflection;
using System.Collections;
using NLite.Collections;
using System.Reflection;

namespace NLite.Internal
{
    static class MetadataMapper
    {
        public static To Map<From, To>() where To : class
        {
            return typeof(From).GetMappings().GetMappingView<To>();
        }

        public static IDictionary<string, object> Map<From>()
        {
            return typeof(From).GetMappings();
        }

        public static To Map<To>(PropertySet mappings)
        {
            return mappings.GetMappingView<To>();
        }
        
    }


   

}
